package com.dao;

import com.entity.Condition;
import com.entity.Member;
import com.mapper.MemberMapper;
import com.page.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface MemberDao {
    public List<Member> getAll()throws Exception;
    /**
     *
     * @param pageInfo
     * @return
     */
    public List<Member> getMembersByPage(PageInfo pageInfo);


    public Member memberByMnoWithAll(String mno);
    public Member getMemberByMno(String mno)throws Exception;
    public Integer add(Member member)throws Exception;
    /**
     *  根据主键修改信息
     * @param member
     */
    public Integer update(Member member)throws Exception;
    /**
     * 搜索分页查询
     * @param pageInfo
     * @return
     */
    public List<Member> searchMembersByPage(PageInfo pageInfo, List<Condition> conditions) throws ParseException ;
}
